package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.node.LayuiTreeNode;
import cn.stylefeng.guns.base.pojo.node.ZTreeNode;
import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.GcgWsjd;
import cn.stylefeng.guns.sys.modular.system.model.params.CwbbParam;
import cn.stylefeng.guns.sys.modular.system.entity.GcgWsjdShenpi;
import cn.stylefeng.guns.sys.modular.system.model.params.GcgWsjdParam;
import cn.stylefeng.guns.sys.modular.system.model.params.GcgWsjdShenpiParam;
import cn.stylefeng.guns.sys.modular.system.model.result.GcgWsjdResult;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 网上建店信息gcg_wsjd 服务类
 * </p>
 *
 * @author liuy
 * @since 2021-05-18
 */
public interface GcgWsjdService extends IService<GcgWsjd> {

    /**
     * 新增
     *
     * @author liuy
     * @Date 2021-05-18
     */
    void add(GcgWsjdParam param);

    /**
     * 删除
     *
     * @author liuy
     * @Date 2021-05-18
     */
    void delete(GcgWsjdParam param);

    /**
     * 更新
     *
     * @author liuy
     * @Date 2021-05-18
     */
    void update(GcgWsjdParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author liuy
     * @Date 2021-05-18
     */
    GcgWsjdResult findBySpec(GcgWsjdParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author liuy
     * @Date 2021-05-18
     */
    List<GcgWsjdResult> findListBySpec(GcgWsjdParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author liuy
     * @Date 2021-05-18
     */
     LayuiPageInfo findPageBySpec(GcgWsjdParam param);

    List<GcgWsjdResult> customList(GcgWsjdParam param);

    void expExcel(HttpServletResponse response, GcgWsjdParam wsjdParam) throws Exception;

    List<GcgWsjdResult>dmList();

     List<LayuiTreeNode> layuiTree();

    List<Map<String, Object>> selectMenuTree(GcgWsjdParam param);

    List<ZTreeNode> menuTreeList();

    /**
     * 支付宝列表
     * @param gcgWsjd
     * @return
     */
    Page<Map<String, Object>> getZfb(GcgWsjd gcgWsjd);

    /**
     * 支付宝审批通过
     * @param
     */
    void zfbPass(String id);

    /**
     * 支付宝审批驳回列表
     * @return
     */
    List<Map<String, Object>> rejectList(Long gcgWsjdId);

    /**
     * 支付宝审批驳回
     * @param
     */
    void zfbReject(Long gcgWsjdId, String data);

    void reject(Long gcgWsjdId, String data);

    List<ZTreeNode> rejectTreeList();

    void saveKhr(GcgWsjdParam param);

    /**
     * 批量下载图片
     * @param ids
     * @param request
     * @param response
     */
    void btnDown(String ids, HttpServletRequest request, HttpServletResponse response) throws Exception;
}
